using Microsoft.Xna.Framework;

namespace SolarWinds.Helpers
{
    public class TileHelper
    {
        public static Rectangle TileIndex2Rectangle(Point index, Point tileSize)
        {
            var positionRet = new Point
                                  {
                                      X = index.X*tileSize.X, 
                                      Y = index.Y*tileSize.Y
                                  };

            return new Rectangle(positionRet.X, positionRet.Y, tileSize.X, tileSize.Y);
        }
    }
}